package com.report.enumeration;

public enum ReportTypeEnum {

    MERGE(0, "合并表"),
    SINGLE(1, "单户表");


    private Integer code;

    private String desc;

    private ReportTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static ReportTypeEnum getByCode(int code) {
        for (ReportTypeEnum value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }
}
